package com.productserver.pojo;

/**
 * @Author wjn.
 * @Date 2020/11/13 - 16:29.
 */
public class Product {
    private Integer id;//商品 id
    private String productname ;//商品名称
    private Integer stock ;//库存量

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", productname='" + productname + '\'' +
                ", stock=" + stock +
                '}';
    }
}
